import request from '@/utils/request'


export function tretPriceTask(query) {
  return request({
    url: '/homePage/tretPriceTask',
    method: 'get',
    params: query
  })
}

export function Test(query) {
  return request({
    url: '/homePage/Test',
    method: 'get',
    params: query
  })
}

// 环比统计
export function getLinkRelativeRatioCount() {
  return request({
    url: '/homePage/getLinkRelativeRatioCount',
    method: 'get'
  })
}

// 本周充电电量与使用次数分析
export function getChargingCapacityChargingNumber(query) {
  return request({
    url: '/homePage/getChargingCapacityChargingNumber',
    method: 'get',
    params: query
  })
}

// 本周注册用户量
export function getRegistrationVolume() {
  return request({
    url: '/homePage/getRegistrationVolume',
    method: 'get'
  })
}

// 今日各充电站充电电量
export function getTodayStationSumPower() {
  return request({
    url: '/homePage/getTodayStationSumPower',
    method: 'get'
  })
}

// 今日充电订单
export function getTodayChargeOrder() {
  return request({
    url: '/homePage/getTodayChargeOrder',
    method: 'get'
  })
}

// 本周充电桩使用率
export function getChargingStationUsageRate(query) {
  return request({
    url: '/homePage/getChargingStationUsageRate',
    method: 'get',
    params: query
  })
}
